<li id="report_<%=this.id%>" class="report report_<%=this.id%>">
	<%= view('//bugstat/views/report/loading.ejs', this)%>
</li>

<script type="text/javascript">
  	function hasStripe( element )
	{
		return $(element).hasClass('report-hightlighted');
	}
	
	function showStripe( element  )
	{
		if ( !hasStripe(element) )
		{
			// Remove stripes from all elements
			$('.report').removeClass('report-hightlighted');
			
			// Add it to the current element
			$(element).addClass('report-hightlighted');

			$(element + ' .report-head-stripe').css({ opacity: 0.1 });
			$(element + ' .report-head-stripe').animate( {
						    opacity: 1.0,
						  }, 300 );
						
			// Round corners (for IE)
			$(element + ' .report-head').corner( '5px' );
		}	
	}
	
	function hideStripe( element )
	{
		$(element).removeClass('report-hightlighted');		
	}
	
	function toggleHeaderStripe( element )
	{
		if ( hasStripe( element ) )
		{
			hideStripe( element );
		}
		else
		{
			showStripe( element );
		}		
	}
</script>